Skip to content

Pass targetSnapshotParams to evaluate a javascript: URL - #12303

Open
zcorpan wants to merge 1 commit into
mainfrom
zcorpan/ancestororigins-var-fixups
Open

zcorpan wants to merge 1 commit into
mainfrom
zcorpan/ancestororigins-var-fixups

Conversation

@zcorpan

@zcorpan zcorpan commented Mar 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #12563.

Test: web-platform-tests/wpt#63223 (by @shannonbooth)

(No PR template since this is a spec bug fix.)

Ack @jmdyck, cc @AtkinsSJ


/browsing-the-web.html ( diff )

Fixes #12563.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zcorpan
zcorpan force-pushed the zcorpan/ancestororigins-var-fixups branch from 1dc2849 to 1e6e44c Compare October 13, 2026 14:08
@zcorpan zcorpan added the topic: javascript: URLs Navigating to and evaluating javascript: URLs label Oct 13, 2026
@zcorpan zcorpan changed the title Pass in targetSnapshotParams to 'evaluate a javascript: URL' Pass targetSnapshotParams to evaluate a javascript: URL Oct 13, 2026
@AtkinsSJ

Copy link
Copy Markdown
Contributor

As far as I can tell, this is correct.

@shannonbooth

Copy link
Copy Markdown
Member

I had another finding that relates to this PR, however I can split this out into a different issue if desired since it might be different enough to what this is fixing, and I also haven't checked if this is already covered by WPT (though engines do appear to implement it).

I think step 13 of "evaluate a javascript URL" should set finalSandboxFlags to the union of the target snapshot params now that this is passed through, which is also done elsewhere in navigation. i.e something like:

  1. Let finalSandboxFlags be the union of targetSnapshotParams's sandboxing flags and policyContainer's CSP list's CSP-derived sandboxing flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: javascript: URLs Navigating to and evaluating javascript: URLs

Development

Successfully merging this pull request may close these issues.

"Evaluate a javascript url" refers to non-existent targetSnapshotParams.

3 participants